<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>title配置项</title>
  <script src="./echarts.js"></script>
  <style lang="css">
    #chart1 {
      width: 900px;
      height: 800px;
      border: 1px solid red;
      float: left;
    }
  </style>
</head>
<body>
  <div id="chart1"></div>

  <script>
    const myChart1 = echarts.init(document.getElementById('chart1'));

    myChart1.setOption({
      grid: {
        show: true,
        // left: 'auto',
        width: '100%',
        containLabel: false,
        backgroundColor: 'green'
      },
      xAxis: {
        data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'],
        // axisLine: false, // x轴线
        splitLine: { // 坐标轴上的刻度线
          show: false,
        }
      },
      yAxis: {
        // axisLine: false, // y轴线
        splitLine: { // 坐标轴上的刻度线
          show: false,
        }
      },
      series: {
        name: '销量',
        type: 'bar',
        data: [5, 20, 36, 10, 19, 24]
      }
    })
  </script>
</body>
</html>